From 6ec9385ed708f50ce4fc6e3ae7650341612e86ae Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Mon, 14 May 2007 14:18:19 +0000 Subject: [PATCH] add 'nourl' option to an1 format --- gpsbabel/an1.c | 5 ++++- gpsbabel/xmldoc/formats/options/an1-nourl.xml | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 gpsbabel/xmldoc/formats/options/an1-nourl.xml diff --git a/gpsbabel/an1.c b/gpsbabel/an1.c index 684579598..e27603055 100644 --- a/gpsbabel/an1.c +++ b/gpsbabel/an1.c @@ -33,6 +33,7 @@ static FILE *outfile; static char *output_type = NULL; static char *road_changes = NULL; static char *nogc = NULL; +static char *nourl = NULL; static char *opt_symbol = NULL; static char *opt_color = NULL; static char *opt_zoom = NULL; @@ -64,6 +65,8 @@ arglist_t an1_args[] = { "", ARGTYPE_STRING, ARG_NOMINMAX }, {"nogc", &nogc, "Do not add geocache data to description", NULL, ARGTYPE_BOOL, ARG_NOMINMAX }, + {"nourl", &nourl, "Do not add URLs to description", + NULL, ARGTYPE_BOOL, ARG_NOMINMAX }, {"deficon", &opt_symbol, "Symbol to use for point data", "Red Flag", ARGTYPE_STRING, ARG_NOMINMAX }, {"color", &opt_color, "Color for lines or mapnotes", @@ -797,7 +800,7 @@ Write_One_AN1_Waypoint( const waypoint *wpt ) xfree( extra ); } - if ( wpt->url ) { + if ( !nourl && wpt->url ) { int len = 7+strlen(wpt->url); char *extra = (char *)xmalloc( len ); sprintf( extra, "{URL=%s}", wpt->url ); diff --git a/gpsbabel/xmldoc/formats/options/an1-nourl.xml b/gpsbabel/xmldoc/formats/options/an1-nourl.xml new file mode 100644 index 000000000..e4504df34 --- /dev/null +++ b/gpsbabel/xmldoc/formats/options/an1-nourl.xml @@ -0,0 +1,12 @@ + +If your original waypoint data contains URLs, GPSBabel will include them as +links in the generated drawing file. This causes the waypoint symbol to have +a blue border, and it causes the waypoint text to be drawn in blue with an +underline. + + +If you do not want this behavior, specify the "nourl" option on the command +line: + +gpsbabel -i gpx -f 12345.gpx -o an1,nourl -F 12345.an1 + -- 2.30.2